package com.example.demo.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName TestController
 * @Description TODO
 * @Author leejiliang
 * @DateTime 2020/4/23 5:30 PM
 * @Version 1.0
 */
@RestController
public class TestController {

	@GetMapping("/hello")
	public String hello() {
		return "hello";
	}

	@GetMapping("/admin/hello")
	public String adminHello() {
		return "adminHello";
	}

	@GetMapping("/user/hello")
	public String userHello() {
		return "userHello";
	}
}
